package com.yanqu.road.server.cmd.activity.unionchest;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.UnionChestProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.manager.activity.unionchest.CrossUnionChestMgr;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.utils.YanQuMessageUtils;


@Cmd(code = CrossProtocol.C2_UNIONCHEST_BOX_NOTICE_ADD, desc = "增加大奖宝箱公告")
public class CrossUnionChestNoticeAddCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {

        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        UnionChestProto.CrossUnionChestNoticeAddMsg reqMsg = UnionChestProto.CrossUnionChestNoticeAddMsg.parseFrom(packet.getBytes());
        CrossUnionChestMgr.addNoticeMsg(reqMsg.getActivityId(), reqMsg);
    }

    @Override
    public void sendData() {
    }
}
